import request from '@/utils/request'

export default {
  //查询积分等级列表
  list() {
    return request({
      url: '/admin/core/integralGrade/list',
      method: 'get',
    })
  },
  //根据ID删除积分等级
  removeById(id) {
    return request({
      url: `/admin/core/integralGrade/remove/${id}`,
      method: 'delete',
    })
  },
  //新增数据
  save(integralGrade) {
    return request({
      url: `/admin/core/integralGrade/save`,
      method: 'post',
      data: integralGrade,
    })
  },
  //回显数据
  getById(id) {
    return request({
      url: `/admin/core/integralGrade/get/${id}`,
      method: 'get',
    })
  },
  //更新数据
  updateById(integralGrade) {
    return request({
      url: `/admin/core/integralGrade/update`,
      method: 'put',
      data: integralGrade,
    })
  },
}
